<template>
  <div>
    <h2>测试修改导航二页面显示时强制刷新</h2>
    <button @click="onClick">点击测试并跳转导航二</button>
  </div>
</template>

<script>
import { mapMutations } from 'vuex'

export default {
  name: 'test4',
  methods: {
    ...mapMutations('test', [
      'setRefresh'
    ]),
    onClick () {
      this.setRefresh(true)
      this.$router.push('/3')
    }
  }
}
</script>

